<?php
$this->pageTitle= Yii::t('app', 'Логин');
?>
<h1><?php echo Yii::t('app', 'Логин')?></h1>
<?php $form=$this->beginWidget('CActiveForm', 
	array(
		'id'=>'login-form',
		'enableClientValidation'=>true,
		'clientOptions'=>array(
			'validateOnSubmit'=>true,
		),
		'htmlOptions'=>array(
			'class'=>'form-horizontal',
		),
	)
); ?>
<div class="control-group"><p class="note"><?php echo Yii::t('app', 'Поля'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'обязательные.'); ?></p></div>
<div class="control-group">
	<?php echo $form->labelEx($model,'username',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->textField($model,'username',array('placeholder'=>Yii::t('app', 'Email'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'username'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'password',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model,'password',array('placeholder'=>Yii::t('app', 'Пароль'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'password'); ?></span>
	</div>
</div>
<div class="control-group">
	<div class="controls">
		<div class="checkbox">
			<?php echo $form->checkBox($model,'rememberMe'); ?> <?php echo $form->label($model,'rememberMe'); ?>
		</div>
		<span class="help-block"><?php echo $form->error($model,'rememberMe'); ?></span><br />
		<?php echo GxHtml::submitButton(Yii::t('app', 'Войти'), array('class'=>'btn')); ?>
		<span class="help-inline"><a href="<?php echo Yii::app()->createUrl('/user/recovery'); ?>" ><?php echo UserModule::t('Забыли пароль?');?></a></span>
	</div>
</div>
<?php $this->endWidget(); ?>
<!-- form -->